package com.power.feign.sentinel;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.power.domain.Category;
import com.power.domain.Prod;
import com.power.domain.ProdTagReference;
import com.power.feign.SearchProdFeign;
import com.power.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description 远程调用失败处理
 * @Author dingchunlin
 * @Date 2024/07/21 16:58
 * @Version 1.0.0
 */
@Component
@Slf4j
public class SearchProdFeignSentinel implements SearchProdFeign {
    @Override
    public Result<Page<ProdTagReference>> getProdTagReferencePageByTagId(Long current, Long size, Long tagId) {
        log.error("远程调用失败，根据分组标签id分页查询商品标签引用关系失败");
        return null;
    }

    @Override
    public Result<List<Prod>> getProdListByIds(List<Long> prodIdList) {
        log.error("远程调用失败，根据商品id列表查询商品列表失败");
        return null;
    }

    @Override
    public Result<List<Category>> getCategoryListByParentId(Long parentId) {
        log.error("远程调用失败，根据父分类id查询子分类列表失败");
        return null;
    }

    @Override
    public Result<List<Prod>> loadProdListByCategoryIdList(List<Long> categoryIdList) {
        log.error("远程调用失败，根据分类id查询商品列表失败");
        return null;
    }
}
